package com.gavin.export.controller;

import com.gavin.export.service.UserExportExcelService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * ExportExcelController
 *
 * @author grl
 * @date 2024/10/15
 */
@RestController
@RequiredArgsConstructor
public class ExportExcelController {

    private final UserExportExcelService exportExcelService;

    /**
     * 获取导出摸版
     */
    @GetMapping(value = "/user/export")
    public void exportUserInfo(HttpServletRequest request, HttpServletResponse response,@RequestParam(required = false) Integer total ){
        exportExcelService.exportUserInfo(request, response,total);
    }
}
